home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / styles / StyleProxy.as < prev   
Encoding:
Text File  |  2008-10-29  |  3.4 KB  |  132 lines

  1. package mx.styles
  2. {
  3.    import mx.core.FlexVersion;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class StyleProxy implements IStyleClient
  9.    {
  10.       mx_internal static const VERSION:String = "3.0.0.0";
  11.       
  12.       private var _source:IStyleClient;
  13.       
  14.       private var _filterMap:Object;
  15.       
  16.       public function StyleProxy(param1:IStyleClient, param2:Object)
  17.       {
  18.          super();
  19.          this.filterMap = param2;
  20.          this.source = param1;
  21.       }
  22.       
  23.       public function styleChanged(param1:String) : void
  24.       {
  25.          return _source.styleChanged(param1);
  26.       }
  27.       
  28.       public function get filterMap() : Object
  29.       {
  30.          return FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0 ? null : _filterMap;
  31.       }
  32.       
  33.       public function set filterMap(param1:Object) : void
  34.       {
  35.          _filterMap = param1;
  36.       }
  37.       
  38.       public function get styleDeclaration() : CSSStyleDeclaration
  39.       {
  40.          return _source.styleDeclaration;
  41.       }
  42.       
  43.       public function notifyStyleChangeInChildren(param1:String, param2:Boolean) : void
  44.       {
  45.          return _source.notifyStyleChangeInChildren(param1,param2);
  46.       }
  47.       
  48.       public function set inheritingStyles(param1:Object) : void
  49.       {
  50.       }
  51.       
  52.       public function get source() : IStyleClient
  53.       {
  54.          return _source;
  55.       }
  56.       
  57.       public function get styleName() : Object
  58.       {
  59.          if(_source.styleName is IStyleClient)
  60.          {
  61.             return new StyleProxy(IStyleClient(_source.styleName),filterMap);
  62.          }
  63.          return _source.styleName;
  64.       }
  65.       
  66.       public function registerEffects(param1:Array) : void
  67.       {
  68.          return _source.registerEffects(param1);
  69.       }
  70.       
  71.       public function regenerateStyleCache(param1:Boolean) : void
  72.       {
  73.          _source.regenerateStyleCache(param1);
  74.       }
  75.       
  76.       public function get inheritingStyles() : Object
  77.       {
  78.          return _source.inheritingStyles;
  79.       }
  80.       
  81.       public function get className() : String
  82.       {
  83.          return _source.className;
  84.       }
  85.       
  86.       public function clearStyle(param1:String) : void
  87.       {
  88.          _source.clearStyle(param1);
  89.       }
  90.       
  91.       public function getClassStyleDeclarations() : Array
  92.       {
  93.          return _source.getClassStyleDeclarations();
  94.       }
  95.       
  96.       public function set nonInheritingStyles(param1:Object) : void
  97.       {
  98.       }
  99.       
  100.       public function setStyle(param1:String, param2:*) : void
  101.       {
  102.          _source.setStyle(param1,param2);
  103.       }
  104.       
  105.       public function get nonInheritingStyles() : Object
  106.       {
  107.          return FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0 ? _source.nonInheritingStyles : null;
  108.       }
  109.       
  110.       public function set styleName(param1:Object) : void
  111.       {
  112.          _source.styleName = param1;
  113.       }
  114.       
  115.       public function getStyle(param1:String) : *
  116.       {
  117.          return _source.getStyle(param1);
  118.       }
  119.       
  120.       public function set source(param1:IStyleClient) : void
  121.       {
  122.          _source = param1;
  123.       }
  124.       
  125.       public function set styleDeclaration(param1:CSSStyleDeclaration) : void
  126.       {
  127.          _source.styleDeclaration = styleDeclaration;
  128.       }
  129.    }
  130. }
  131.  
  132.